//
//  IProduct.h
//  XRmenu
//
//  Created by yangxh on 11-3-24.
//  Copyright 2011 E0571. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface IProduct : NSObject {
	NSString *capacity;
	NSDate *checkInTime;
	NSInteger color;
	NSInteger commentNum;
	NSString *entityId;
	NSInteger Id;
	BOOL isRecommend;
	NSString *position;
	NSString *productId;
	NSString *productNo;
	NSNumber *salePrice;
	NSNumber *scoreCount;
	NSInteger status;
	NSInteger type;
	NSString *unit;
	 
	NSString *name; //自己赋值
	NSString *spellCode; //
}

@property (nonatomic, retain) NSString *capacity;
@property (nonatomic, retain) NSDate *checkInTime;
@property (nonatomic, assign) NSInteger color;
@property (nonatomic, assign) NSInteger commentNum;
@property (nonatomic, retain) NSString *entityId;
@property (nonatomic, assign) NSInteger Id;
@property (nonatomic, assign, getter=isRecommend) BOOL isRecommend;
@property (nonatomic, retain) NSString *position;
@property (nonatomic, retain) NSString *productId;
@property (nonatomic, retain) NSString *productNo;
@property (nonatomic, retain) NSNumber *salePrice;
@property (nonatomic, retain) NSNumber *scoreCount;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, assign) NSInteger type;
@property (nonatomic, retain) NSString *unit;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *spellCode;
- (id)init;
- (id)initWithCapacity:(NSString*)aCapacity checkInTime:(NSDate*)aCheckInTime color:(NSInteger)aColor commentNum:(NSInteger)aCommentNum entityId:(NSString*)anEntityId Id:(NSInteger)anId isRecommend:(BOOL)flag position:(NSString*)aPosition productId:(NSString*)aProductId productNo:(NSString*)aProductNo salePrice:(NSNumber*)aSalePrice scoreCount:(NSNumber*)aScoreCount status:(NSInteger)aStatus type:(NSInteger)aType unit:(NSString*)anUnit;
+ (id)objectWithCapacity:(NSString*)aCapacity checkInTime:(NSDate*)aCheckInTime color:(NSInteger)aColor commentNum:(NSInteger)aCommentNum entityId:(NSString*)anEntityId Id:(NSInteger)anId isRecommend:(BOOL)flag position:(NSString*)aPosition productId:(NSString*)aProductId productNo:(NSString*)aProductNo salePrice:(NSNumber*)aSalePrice scoreCount:(NSNumber*)aScoreCount status:(NSInteger)aStatus type:(NSInteger)aType unit:(NSString*)anUnit;
- (NSArray *)keyPaths;


+ (IProduct *)iProductByParse:(NSDictionary *)info;

@end
